//
//  CommonUpLoadImageView.h
//  DouLinBusiness
//
//  Created by ypj on 2021/4/9.
//

#import <UIKit/UIKit.h>
@class MM_CollectionHeaderView;
@class UploadImageCollectionViewCell;
NS_ASSUME_NONNULL_BEGIN

@interface CommonUpLoadImageView : UIView<UICollectionViewDelegate,UICollectionViewDataSource>


@property(nonatomic,strong)NSString * titleString;
@property(nonatomic,strong)UICollectionView * collectionView;
@property(nonatomic,strong)NSMutableArray   *  imageArray;
@property(nonatomic,assign) CGFloat             collectionViewHeight;
@property(nonatomic,assign) BOOL                isShowButton;
@property(nonatomic ,strong)void(^ToShowAlert)(void);//上传照片
@property(nonatomic,strong)void(^ToDelectImage)(NSInteger   index);//删除当前的图片
@property(nonatomic,strong)void(^ToDelectFileUrl)(NSInteger index);//删除图片上传成功之后保存的路径
-(void)delectImageSure:(NSInteger)tag;
//+ (instancetype)shareInstance;
-(instancetype)initWithFrame:(CGRect)frame withSectionTitle:(NSString *)titleString withImageArray:(NSMutableArray *)imageArrayData;
-(void)getCollectionViewHeight;
@end
@interface UploadImageCollectionViewCell : UICollectionViewCell
@property(nonatomic,strong)UIImageView * imageContent;
@property(nonatomic,strong)UIButton *delectButton;
+ (NSString*)reuseIdentifier ;
@end
@interface MM_CollectionHeaderView : UICollectionReusableView
@property(nonatomic,strong) UILabel  * titleNameLb;
@property(nonatomic,strong) UILabel  * zhuShiLb;
@property(nonatomic,strong) UIButton *  reUpdateImage;
@property(nonatomic ,strong)void(^ToupLoadImage)(void);//上传照片
@end
NS_ASSUME_NONNULL_END
